<?php

namespace App\Model;

class CarsModel extends BaseModel
{
    protected $table = 'cars';

    protected $primaryKey = 'car_id';

    protected $fillable = [
        'user_id',
        'project_id',
        'num'
    ];


    public function goodsInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(ProjectsModel::class,'project_id','project_id');
    }
}
